from pathlib import Path
total_count=0
for item in Path.cwd().parent.rglob("*.py"):
    with open(item,"r",encoding="UTF-8") as file:
        print(f"{item}")
        total_count += len(file.read())
print(total_count)